﻿using System;
using System.Net;
using System.Collections.Generic;
using Galaktika.BI.Silverlight.Controls.PivotGrid.ClientServer;

namespace Galaktika.BI.Silverlight.Controls.PivotGrid.ClientServer
{
    public class PerformMemberActionArgs : EventArgs
    {
        public PerformMemberActionArgs() { }

        public PerformMemberActionArgs(
            ShortMemberInfo member,
            int axisIndex,
            MemberActionType action,
            List<ShortMemberInfo> ascendants)
        {
            this.Member = member;
            this.AxisIndex = axisIndex;
            this.Action = action;
            this.Ascendants = ascendants;
        }

        /// <summary>
        /// Предки
        /// </summary>
        public List<ShortMemberInfo> Ascendants = null;
        public ShortMemberInfo Member = null;
        public MemberActionType Action = MemberActionType.Expand;
        public int AxisIndex = 0;
    }
}
